<template>
  <div>
    {{counterStore.count}}
    {{counterStore.doubleCount}}
  </div>
</template>
<script setup lang="ts">
import {useCounterStore} from '../../stores/counter'
const counterStore = useCounterStore()
// 以下三种方法都会被devtools追踪
counterStore.count++
// counterStore.$patch({count:counterStore.count+1})
// counterStore.increment()
</script>